<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class User_model extends CI_Model {

	var $data;

	function validate_login($username, $password)
	{
		$this->db->where('login_name', $username);
		$this->db->where('password', (md5($password)));			
		$this->db->where('active', 't');
		$query = $this->db->get('adm_user');
		
		return $query;
	}
	

}
/* End of file user_model.php */
/* Location: ./application/models/user_model.php */
